package com.bmth.alise.utils.mq;

import com.bmth.alise.utils.conf.Configuration;

public class QueueUtils {

	public static String[] queues;

	public static String randomQueue() {
		if (queues == null) {
			queues = Configuration.getProperty("hosts").split(",");
		}
		return queues[(int) (Math.random() * queues.length)];
	}

}
